package com.ericom.dao.hibernate;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.ericom.dao.GroupSaleDao;
import com.ericom.model.GroupSale;

@Repository("groupSaleDao")
public class GroupSaleDaoHibernate extends GenericDaoHibernate<GroupSale, Long>
		implements GroupSaleDao {

	public GroupSaleDaoHibernate() {
		super(GroupSale.class);
	}

	@Override
	public List<GroupSale> findByTitle(String title) {

		return this.getHibernateTemplate().find("from GroupSale where title=?",
				title);
	}

}
